class Aodi implements Car {
    String color = "黑色";
    int price = 150000;

    @Override
    public String getName(){
        return color+"奥迪";
    }


    @Override
    public int getPrice(){
        if(color.equals("绿色"))
            price += 30000;

        return price;
    }

    public Aodi(String color){
        this.color = color;
    }

}
